#!/usr/bin/env bash

IMAGENAME=image_bookworm_nocloud_arm64.qcow2

cd debian-cloud-images

sudo qemu-system-aarch64 \
    -M virt -cpu max \
    -m 2048 \
    -nographic \
    -bios ./QEMU_EFI.fd \
    -drive if=none,file=$IMAGENAME,id=hd0 -device virtio-blk-device,drive=hd0 \
    -nic user,hostfwd=tcp::8080-:80,hostfwd=tcp::2222-:22
